/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.achieve.entity;

import com.jeeplus.modules.member.entity.Member;
import java.util.Date;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 业绩记录Entity
 * @author w
 * @version 2021-08-31
 */
public class Achievement extends DataEntity<Achievement> {
	
	private static final long serialVersionUID = 1L;
	private Member member;		// 用户
	private Member formmem;		// 来源用户
	private Double money;		// 金额
	private String type;		// 类型
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间
	
	public Achievement() {
		super();
	}

	public Achievement(String id){
		super(id);
	}

	@ExcelField(title="用户", fieldType=Member.class, value="member.loginName", align=2, sort=1)
	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}
	
	@ExcelField(title="来源用户", fieldType=Member.class, value="formmem.loginName", align=2, sort=2)
	public Member getFormmem() {
		return formmem;
	}

	public void setFormmem(Member formmem) {
		this.formmem = formmem;
	}
	
	@ExcelField(title="金额", align=2, sort=3)
	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}
	
	@ExcelField(title="类型", dictType="achieve_type", align=2, sort=4)
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}
	
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}
		
}